import type { AxiosRequestConfig } from "axios";

export interface TAxiosInterceptors {
  requestInterceptor?: (config: AxiosRequestConfig) => AxiosRequestConfig;
  requestInterceptorCatch?: (error: any) => any;
  responseInterceptor?: (res: any) => any;
  responseInterceptorCatch?: (error: any) => any;
}

export interface TAxiosConfig extends AxiosRequestConfig {
  interceptor?: TAxiosInterceptors;
  showLoading?: boolean;
  baseURL: string;
  timeout: number;
}
